Skip to main content

localNames

Type

function

Summary

Returns a list of all local variables.

Syntax

the localNames
localNames()

Description

Use the localNames function to determine which local variable|local variables are available to the current handler, or to make sure a local variable name has not already been used before declaring it.

Local variables are created either implicitly, by putting a value into them, or explicitly with the local command. They can be deleted with the delete variable command.

Examples

the localNames
repeat with x = 1 to the number of items of line 2 of the localNames

command: delete variable, local

control structure: function

function: globalNames, value

glossary: handler, declare, command, return, local variable

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?